	import { ElNotification, ElMessageBox } from 'element-plus'

	import nprogress from "nprogress"

	
	//消息提示
	export function toast(message,type = "success",dangerouslyUseHTMLString = false){
		ElNotification({
		    message,
		    type,
			duration:3000
		  })
	}
	
	export function showModal(contene = "提示内容",type="warning",title = ""){
		return ElMessageBox.confirm(
		    contene,
		    title,
		    {
		      confirmButtonText: '确定',
		      cancelButtonText: '取消',
		      type,
		    }
		  )

	}
	
	//显示全屏loading
	export function showFullLoading(){
		nprogress.start()
	}
	//隐藏全屏loading
	export function hideFullLoading(){
		nprogress.done()

	}